package com.ehome.poct.base.device.service;

import com.ehome.poct.base.api.dto.device.TestDeviceParamDTO;
import com.ehome.poct.base.api.virtual.TestDeviceParamService;
import com.ehome.poct.base.api.vo.device.TestDeviceParamVO;
import com.ehome.poct.base.device.repository.TestDeviceParamRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 设备表SerivceImlp
 *
 * @author muqiu
 * @Date 2022-02-24 09:23
 */
@Service
public class TestDeviceParamServiceImpl implements TestDeviceParamService {

    @Autowired private TestDeviceParamRepository testDeviceParamRepository;
    
    @Override
    public Boolean setDeviceParam(TestDeviceParamDTO testDeviceParamDTO) {
        return testDeviceParamRepository.setDeviceParam(testDeviceParamDTO);
    }
    
    @Override
    public TestDeviceParamVO getDeviceParamNew(TestDeviceParamDTO testDeviceParamDTO) {
        return testDeviceParamRepository.getDeviceParamNew(testDeviceParamDTO);
    }

    @Override
    public int deleteBySno(String sno) {
        return testDeviceParamRepository.deleteBySno(sno);
    }


}